import http from '../request.js'

// 上传文件
let uploadImage = (url, data) => {
    return http.req(
        'post',
        url = 'file/UploadFile',
        null,
        data
    )
}

// 导入手术文件
let uploadOperationFile = (url, operationId, data) => {
    return http.req(
        'post',
        url = 'file/uploadOperationFile?operationId='+operationId,
        null,
        data
    )
}

export default {
    uploadImage,
    uploadOperationFile
}